package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel
public class RegionUpdateDTO {

    @NotNull(message = "主键不能为空")
    @Range(min = 1, message = "主键为大于或等于1的正整数")
    @ApiModelProperty(value = "大区主键")
    private Integer id;

    @NotBlank(message = "区域名称不能为空")
    @Length(min = 1,max = 80,message = "区域名称的长度在1到80之间")
    @ApiModelProperty(value = "区域名称",notes = "区域名称")
    private String regionName;

    @ApiModelProperty(value = "区域列表",notes = "区域列表")
    private List<AreaDTO> areaList;

    public RegionUpdateDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public List<AreaDTO> getAreaList() {
        return areaList;
    }

    public void setAreaList(List<AreaDTO> areaList) {
        this.areaList = areaList;
    }
}
